#include "DrawInterfaceDX9.h"
#include "DrawInterfaceDX10.h"

CDrawInterfaceBase *CDrawInterfaceBase::CreateDrawInterface( )
{
    switch (g_ApiVersion)
    {
    case V_D3D9:
        return new CDrawInterfaceDX9;
    case V_D3D10:
        return new CDrawInterfaceDX10;
    }

    return NULL;
}